import request from "../utils/request.js";

export const getCourses = (data) => {
    return request({
        url: '/course/getCourses',
        method: 'get',
        params: data
    })
}

export const getCoursesById = (data) => {
    return request({
        url: '/course/getCourseById',
        method: 'get',
        params: data
    })
}
